package com.building.service;

import java.util.List;

import com.building.common.R;
import com.building.entity.Engineering;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.PathVariable;

/**
@author yinjiahui
@create 2021-04-07 19:22
*/
public interface EngineeringService extends IService<Engineering>{


    int updateBatch(List<Engineering> list);

    int updateBatchSelective(List<Engineering> list);

    int batchInsert(List<Engineering> list);

    int insertOrUpdate(Engineering record);

    int insertOrUpdateSelective(Engineering record);

    /**
     * 查询所有数据  加 分页
     * @param limit
     * @param page
     * @return
     */
    List<Engineering> selectEngineering(Integer limit,Integer page);

    /**
     * 根据类别或者阶段进行条件查询
     * @param engineeringTypeId
     * @param engineeringStageId
     * @return
     */
    List<Engineering> selectEngineeringByEngineeringTypeIdOrEngineeringStageId(Integer engineeringTypeId, Integer engineeringStageId);

    /**
     * 根据项目工程编号查询这条数据
     * @param engineeringId
     * @return
     */
    Engineering selectEngineeringByEngineeringId(Integer engineeringId);

    /**
     * 根据项目名称的关键字进行条件查询
     * @param engineeringName
     * @return
     */
    List<Engineering> selectEngineeringByEngineeringName(String engineeringName);

    /**
     *
     * 根据根据工程编号id删除
     *
     * @param engineeringId
     * @return
     */
    void deleteEngineeringByEngineeringId(Integer engineeringId);

    /**
     *
     * 新增或修改数据
     *
     * @param engineering
     * @return
     */
    R insertOrUpdateEngineering(Engineering engineering);
}
